package com.zxw.flow.controller;


import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.api.FlowNodesApi;
import com.zxw.flow.domain.entity.FlowNodes;
import com.zxw.flow.domain.vo.FlowNodesVO;
import com.zxw.flow.domain.vo.FlowTypePageVO;
import com.zxw.flow.service.FlowNodesService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-07-04
 */
@Api(tags = "流程节点模块")
@RestController
@RequestMapping("/flow-nodes")
@RequiredArgsConstructor
public class FlowNodesController implements FlowNodesApi {

    private final FlowNodesService flowNodesService;

    @GetMapping("/page")
    public BasePageRes<FlowNodes> page(FlowTypePageVO flowTypePageVO) {
        return null;
    }

    @GetMapping("/{flowNodesId}")
    public BaseRes<FlowNodes> findFlowNodesById(@PathVariable("flowNodesId") Long flowNodesId) {
        return null;
    }

    @PostMapping("/insert")
    public BaseRes<FlowNodesVO> insertFlowNodes(@RequestBody FlowNodesVO flowNodesVO) {
        return null;
    }

    @PutMapping("/update/{flowNodesId}")
    public BaseRes updateFlowNodes(@PathVariable("flowNodesId") Long flowNodesId,@RequestBody FlowNodesVO flowNodesVO) {
        return null;
    }

    @DeleteMapping("/{flowNodesIds}")
    public BaseRes deleteFlowNodes(@PathVariable("flowNodesIds") String flowNodesIds) {
        return null;
    }
}
